<?php
include_once('/opt/php/lib/php/TVB/pms/pdes/common/bootstrap.php');


$publish_log = new publish_log;

//$publish_log_detail = $publish_log->getPublishLog('programme', 100366);
//var_dump($publish_log_detail);
//
//
//$publish_log_detail = $publish_log->getNonPremiumPublishLog('programme', 100366);
//var_dump($publish_log_detail);
//
//$publish_log_detail = $publish_log->getNonPremiumPublishLog('programme', 88);
//var_dump($publish_log_detail);
//$publish_log_detail = $publish_log->getPremiumPublishLog('programme', 88);
//var_dump($publish_log_detail);

//$publish_log_detail = $publish_log->getNonPremiumPublishLog('episode', 103451);
//var_dump($publish_log_detail);
//


//$ret = folder::getAll(
//	array(
//		'id' => 1,
//		'folder_item_type_id' => 2 
//	)
//);
//var_dump($ret);
//

//$ret = folder_item::getAll(
//	array(
//		'item_id' => 228,
//		'type' => 'video'
//	)
//);
//var_dump($ret);

//$ret = programme::getProgrammeIdForChangeLog(5089, 88);
//var_dump($ret);

$ret = episode::getEpisodeIdForChangeLog(5089, array(250,664));
var_dump($ret);
